﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Yeap.Config;

namespace Yeap.Kernel.Security
{
    public class SecurityContext : ISecurityContext
    {
        #region Implementation of ISecurityContext

        public IUser User { get; private set; }
        public PermissionTypes PermissionType { get; set; }

        #endregion

        public SecurityContext(IUser user, PermissionTypes permissionType)
        {
            User = user;
            PermissionType = permissionType;
        }
    }
}